package com.kolaxy.feignconsumer;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <一句话功能描述><功能详细描述>
 *
 * @author zhourunjin
 * @version: [版本号，2018-09-06]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@FeignClient(name = "hello-service",fallback = HelloServiveFallback.class,configuration = FullLogConfiguration.class)
public interface HelloService {

    @RequestMapping("hello")
    String hello();

    @RequestMapping(value = "hello1" ,method = RequestMethod.GET)
    String hello(@RequestParam("name") String name);

    @RequestMapping(value = "hello2" ,method = RequestMethod.GET)
    String hello(@RequestHeader("name") String name,@RequestHeader("age")Integer age);


}
